package com.sss.hloster0406;

public class Computer extends Student {
	int operation;// 操作成绩
	int EnglishWriting;// 写作能力

	public Computer() {
		super();
	}

	
	public Computer(long stuNum, String stuName, int stuSex, int stuAge, int midExam, int finalExam,
			int operation, int englishWriting) {
		super(stuNum, stuName, stuSex, stuAge, midExam, finalExam);
		this.operation = operation;
		EnglishWriting = englishWriting;
	}


	public float Totalscore() {// 计算总成绩
		return (float) (operation * 0.4 + this.EnglishWriting * 0.2 + this.midExam * 0.2 + this.finalExam * 0.2);
		 
	}

}
